hsync_counter : process (clk, nrst ) is
	hcount : unsigned ( 11 downto 0 );
begin
	if nrst = ‚äò0‚äô then
		hcount <= 0;
		hsync <= ‚äò1‚äô;
	else
		if hcount > 2611 and hcount<2988 then
			hsync <= ‚äò0‚äô;
		else
			hsync <= ‚äò1‚äô;
		end if;
		if hcount < 3177 then
			hcount <= hcount + 1;
		else
			hcount <= 0;
		end if;
	end if;
end process;